﻿//污染预警AQI限值
function PollutantWarnPlotLines() {
    this.colorArray = ["#99004C", "#7E0023"];
    //this.colorArray = ["#70CA2A", "#EDCC23", "#FAA82C", "#F52603", "#89217D", "#6F102D"];
    this.levelArray = ["II级预警线", "I级预警线"];
    this.valueArray = [];
    this.plotLines = [];
    this.valueArrayDic = {
        hour: {
            AQI: [200, 300]          
        },
        day: {
            AQI: [200, 300]           
        }
    };
    this.GetPlotLines = function (pollutant, type) {
        this.valueArray = this.valueArrayDic[type][pollutant];
        this.plotLines = [];
        for (var i = 0; i < this.valueArray.length; i++) {
            this.plotLines.push({
                color: this.colorArray[i],
                width: 3,
                value: this.valueArray[i],
                label: {
                    text: this.levelArray[i] + "标准限值：" + this.valueArray[i],
                    align: 'left'
                }
            });
        }
        return this.plotLines;
    }
}